<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .serch {
            margin: auto;
            width: 98%;
        }

        .serch input {
            width: 80%;
            height: 30px;
            margin: 10px;
            outline: none;
            border: none;
            background-color: #f5f5f5;
            border-radius: 50px;
        }

        .serch span {
            color: blue;
            font-size: 18px;
        }

        .his {
            width: 98%;
            margin: auto;
        }

        .his h4 {
            margin: 10px;
        }

        .his div span {

            background-color: #f5f5f5;
            padding: 5px;
            border-radius: 5px;
            display: inline-block;
            margin: 5px;
        }

        .sf {
            width: 98%;
            margin: auto;
        }

        .sf h4 {
            margin: 10px;
        }

        .sf div span {

            background-color: #f5f5f5;
            padding: 5px;
            border-radius: 5px;
            display: inline-block;
            margin: 5px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="serch">
            <input type="text" v-model="serchText" placeholder="搜索商家、商品名称">
            <span @click="serchClick">搜索</span>
        </div>
        <div class="his">
            <h4>历史搜索</h4>
            <div>
                <span v-for="(item,index) in serchHistory">{{item}}</span>
            </div>
        </div>
        <div class="sf">
            <h4>搜索发现</h4>
            <div class="find">
                <span v-for="(item,index) in serchFind">{{item}}</span>
            </div>
        </div>
    </div>

    <script src="./vue-2.5.21.js"></script>
    <script src="./历史搜索.js"></script>
</body>

</html>